package vanjalee.bs.com.view;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.BoxLayout;
import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.JTabbedPane;

public class Maincore {

	private JFrame frame;
	private final JTabbedPane tabbedPane = new JTabbedPane(JTabbedPane.TOP);	
	private MultiTable multiTable;

	/**
	 * Launch the application.
	 */
	public static void main(String[] args) {
		EventQueue.invokeLater(new Runnable() {
			public void run() {
				try {
					Maincore window = new Maincore();
					window.frame.setVisible(true);
				} catch (Exception e) {
					e.printStackTrace();
				}
			}
		});
	}

	/**
	 * Create the application.
	 */
	public Maincore() {
		initialize();
	}

	/**
	 * Initialize the contents of the frame.
	 */
	private void initialize() {
		frame = new JFrame();
		frame.setBounds(100, 100, 1500, 700);
		frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		frame.getContentPane().add(tabbedPane, BorderLayout.CENTER);		
		
		JPanel panelItems = new JPanel();
		panelItems.setLayout(new BoxLayout(panelItems, BoxLayout.X_AXIS));
		multiTable = new MultiTable();
		panelItems.add(multiTable);				
		tabbedPane.addTab("Item Guide", null, panelItems, null);
						
		JPanel panelCrafting = new JPanel();
		tabbedPane.addTab("Crafting Guide", null, panelCrafting, null);
		
		JPanel panelClan = new JPanel();
		tabbedPane.addTab("Clan", null, panelClan, null);
	}

}
